﻿using System.Collections.Generic;

namespace IOA.MES.EsbApi.Models.Request.Product
{
    public class CreateProductRequest
    {
        public string OrgCode { get; set; }
        public string itemid { get; set; }
        public string ItemNumber { get; set; }
        public string ItemDescZhs { get; set; }
        public string ItemDescUs { get; set; }
        public string ItemLongDescZhs { get; set; }
        public string ItemLongDescUs { get; set; }
        public string PrimaryUnitOfMeasure { get; set; }
        public string UnitOfMeasure { get; set; }
        public string LotControl { get; set; }
        public decimal? ShelfLifeDays { get; set; }
        public string ItemStatus { get; set; }
        public string StockEnableFlag { get; set; }
        public string PurchasingEnableFlag { get; set; }
        public string MustApproveVendor { get; set; }
        public string DefaultBuyerNum { get; set; }
        public string DefaultBuyer { get; set; }
        public string BomEnabledFlag { get; set; }
        public string BuildInWipFlag { get; set; }
        public string CustmoerOrderFlag { get; set; }
        public string InternalOrderFlag { get; set; }
        public string InvoicedEnableFlag { get; set; }
        public string TransactionEnableFlag { get; set; }
        public string ReceiveRoutingId { get; set; }
        public string ExtendAttributes { get; set; }
        public string Attr1 { get; set; }
        public string Attr2 { get; set; }
        public string Attr3 { get; set; }
        public string Attr4 { get; set; }
        public string Attr5 { get; set; }
        public string ReferenceItem { get; set; }//基准码
        public string Power { get; set; }//功率
        public string Grade { get; set; }//等级
        public List<Category> CategorySets { get; set; } = new List<Category>();
    }

    public class Category
    {
        public string CategorySetCode { get; set; }
        public string CategorySetNameZhs { get; set; }
        public string CategorySetNameUs { get; set; }
        public string SetValue { get; set; }
        public string SetValueDescZhs { get; set; }
        public string SetValueDescUs { get; set; }
    }
}